\documentclass[color]{tongjithesis}
\addbibresource[location=local]{ref.bib}

\usepackage{lipsum}
\usepackage{duckuments}

\newcommand{\tightlist}{%
  \setlength{\itemsep}{0pt}
  \setlength{\parskip}{0pt}
}
\newcommand{\passthrough}[1]{
  \lstset{mathescape=false}#1
  \lstset{mathescape=true}
}

\school
{软件学院}
{School of Software Engineering}

\major
{软件工程}
{Software Engineering}

\thesistitle
{这是一个长长长长长的标题}
{这是一个长长长长长的副标题}
{Long Long Long Long Long Long Title}
{Long  Long Long Long Long Long Long Subtitle}

\thesisauthor{毛哥}{Ge MAO}

\schoolnumber{80286}

\advisor{老师}{Professor}

\thesisdate{2019}{6}{1}

\begin{document}

\maketitle

\input{abstract}

% toc
\toc

% main contents
\mainmatter

$body$

\clearpage
{
	\hyphenpenalty=1000 %断词阈值，值越大越不容易出现断词
	\tolerance=500 %丑度，10000为最大无溢出盒子
	\hbadness=100 %如果丑度超过hbadness这一阀值，那么就会发出警告
	\printbibliography[heading=bibintoc,title=参考文献]
}

\clearpage
\addcontentsline{toc}{chapter}{致~谢}
\chapter*{致~谢}

\input{ack}

\end{document}